package com.Brave.manager.Demo05;

public class Demo10 {
    public static void main(String[] args) {
        Desk desk = new Desk();

        Cooker c1 = new Cooker(desk);
        Foodie f1 = new Foodie(desk);


        Thread t1 = new Thread(c1,"厨师");
        Thread t2 = new Thread(f1,"吃货");
        t1.start();
        t2.start();
    }
}
